import $ from '../common/getId'
import formFetch from '../common/formFetch';
const event=()=>{
    let btn=$('btn'),
    user=$('user'),
    pwd=$('pwd');
    btn.onclick=async()=>{
        let data= await formFetch('./login',{
            user:user.value,
            pwd:pwd.value
        })
        console.log(data);

    }
    user.oninput=()=>{
        //alert("用户名")
    }
    pwd.oninput=()=>{
        //alert("密码")
    }

}
export default event;